package cn.edu.sgu.www.mhxysy.entity.children;

import cn.edu.sgu.www.mhxysy.consts.IdentifierPrefixes;
import cn.edu.sgu.www.mhxysy.util.StringUtils;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 子女
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
@TableName("children")
public class Children implements Serializable {
    private static final long serialVersionUID = 18L;

    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value = "ID")
    private String id;

    /**
     * 子女名字
     */
    @ApiModelProperty(value = "子女名字")
    private String name;

    /**
     * 子女等级
     */
    @ApiModelProperty(value = "子女等级")
    private Integer grade;

    /**
     * 健康度
     */
    @ApiModelProperty(value = "健康度")
    private Integer healthiness;

    /**
     * 角色ID
     */
    @ApiModelProperty(value = "角色ID")
    private String roleId;

    /**
     * 门派ID
     */
    @ApiModelProperty(value = "门派ID")
    private Integer schoolId;

    /**
     * 子女造型ID
     */
    @ApiModelProperty(value = "子女造型ID")
    private Integer categoryId;

    /**
     * 提升次数
     */
    @ApiModelProperty(value = "提升次数")
    private Integer improveTimes;

    public String uuid() {
        return IdentifierPrefixes.PREFIX_ZN + StringUtils.uuid();
    }

}